<%-- 
    Document   : adminCoursesAdd
    Created on : Nov 16, 2013
    Author     : Patrick
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
      <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="../../assets/ico/favicon.png">
        <title>GRS Admin Courses</title>
        <!-- Bootstrap core CSS -->
        <link href="../libs/bootstrap/css/bootstrap.css" rel="stylesheet">

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="../../assets/js/html5shiv.js"></script>
          <script src="../../assets/js/respond.min.js"></script>
        <![endif]-->
      </head>

    <body>
        <header>
          <nav class="navbar navbar-default" role="navigation">
              <div class="navbar-header"><p class="navbar-text navbar-left">Grade Report System</p></div>
              
                <form class="" method="post" action="adminCourses" >
                    <ul class="nav navbar-nav">
                        <li><a href="../grs/adminUsers">Users</a></li>
                        <li class ="active"><a href="">Courses</a></li>
                        <li><a href="../grs/adminSections">Sections</a></li>
                    </ul>
                </form>
                <form class="navbar-form navbar-right" method="post" action="../login" >
                    <div class="form-group">Signed in as ${sessionScope.UserName}</div>
                    <button id="logout" name="logout" type="submit" class="btn btn-link">(Log out)</button>
                </form>
           
          </nav>
      </header>
        <div class="container">
            <div id="errorMessageContainer" class="alert alert-danger" style="display: none;">
                <a class="close" data-dismiss="alert" href="#">×</a><span id="errorMessage">${messages.error}</span>
            </div>
            <h2>Add or Edit Course</h2>
            <p class="lead">Enter the information of the course to add or edit.</p>
            <form class="form-horizontal" role="form" method="post" action="adminCourses">
                <input type="hidden" id="inputCourseId" name="inputCourseId" value="${inputCourseId}">
                <div class="form-group">
                  <label for="inputCourseCode" class="col-sm-2 control-label">Course Code</label>
                  <div class="col-sm-4">
                      <input name="inputCourseCode" type="text" class="form-control" id="inputCourseCode" placeholder="Course Code" value="${inputCourseCode}">
                  </div>
                </div>
                <div class="form-group">
                  <label for="inputCourseName" class="col-sm-2 control-label">Course Name</label>
                  <div class="col-sm-4">
                      <input name="inputCourseName" type="text" class="form-control" id="inputCourseName" placeholder="Course Name" value="${inputCourseName}">
                  </div>
                </div>
                <div class="form-group">
                    <label for="inputCreditHours" class="col-sm-2 control-label">Credit Hours</label>
                    <div class="col-sm-4">
                        <select class="form-control" id="inputCreditHours" name="inputCreditHours">
                            <option value="1">1.0</option> 
                            <option value="2">2.0</option>
                            <option value="3">3.0</option>  
                            <option value="4">4.0</option> 
                        </select>
                    </div>
                </div>
            
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-4">
                    <button name="submitCourse" id="submitCourse" type="submit" class="btn btn-default btn-primary">Submit</button>
                    <button name="cancelSubmitCourse" id="cancelSubmitCourse" type="submit" class="btn btn-default">Cancel</button>
                  </div>
                </div>
          </form>

        </div>
        
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <script src="../libs/jquery/jquery-2.0.3.min.js"></script>
    <script src="../libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="../scripts/adminCoursesAdd.js"></script>
    <!-- Placed at the end of the document so the pages load faster -->
    </body>
</html>
